package kr.hkit.powerjava.chapter05.work;

import java.util.Scanner;

public class Prog6 {
	public static void main(String[] args) {
		
		int x;
		int y;
		int z;
		int w;
		Scanner in =new Scanner(System.in);
		
		System.out.print("500원갯수 :");
		x=in.nextInt();
		System.out.print("100원갯수 :");
		y=in.nextInt();
		System.out.print("50원갯수 :");
		z=in.nextInt();
		System.out.print("10원갯수 :");
		w=in.nextInt();
		
		int coin;
		coin=(500*x)+(100*y)+(50*z)+(10*w);
		System.out.println("저금통에 든 총금액은 "+coin+"입니다");
		
	}

}
